package my1st;

//文件名 : ExcepTest.java
import java.io.*;

public class ExcepTest{

public static void main(String args[]){
   try{
      int a[] = new int[2];
      System.out.println("Access element three :" + a[3]);
   }catch(ArrayIndexOutOfBoundsException e){
      System.out.println("Exception thrown  :" + e);
   }
   System.out.println("Out of the block");
   
   try {
	   InputStream file = new FileInputStream("shit");
	    byte x = (byte) file.read();
	} catch(FileNotFoundException f) { // Not valid!
	    f.printStackTrace();
	    return ;
	} catch(IOException i) {
	    i.printStackTrace();
	    return ;
	}   
   
}
}
